package org.example.exp2.exam4;

import org.example.exp2.utils.XMLUtil;

public class Client {
    public static void main(String[] args) {
        ImageReaderFactory imageReaderFactory = (ImageReaderFactory) XMLUtil.getBean(
                "src/test/java/org/example/exp2/exam4/config.xml",
                "ImageFactoryType");
        ImageReader imageReader = imageReaderFactory.getImageReader();
        imageReader.paintImage();
    }
}